-- GENERATED SPELL FOR [Sayge] --


function spell0_14822(pUnit, Event) --@Sayge\'s Dark Fortune of Agility,n/a--
pUnit:FullCastSpellOnTarget(23736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14822', 611, 1)
end

function spell1_14822(pUnit, Event) --@Sayge\'s Dark Fortune of Armor,n/a--
pUnit:FullCastSpellOnTarget(23767,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14822', 575, 1)
end

function spell2_14822(pUnit, Event) --@Sayge\'s Dark Fortune of Damage,n/a--
pUnit:FullCastSpellOnTarget(23768,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14822', 596, 1)
end

function spell3_14822(pUnit, Event) --@Sayge\'s Dark Fortune of Intelligence,n/a--
pUnit:FullCastSpellOnTarget(23766,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14822', 683, 1)
end

function spell4_14822(pUnit, Event) --@Sayge\'s Dark Fortune of Resistance,n/a--
pUnit:FullCastSpellOnTarget(23769,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14822', 553, 1)
end

function spell5_14822(pUnit, Event) --@Sayge\'s Dark Fortune of Spirit,n/a--
pUnit:FullCastSpellOnTarget(23738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14822', 619, 1)
end

function spell6_14822(pUnit, Event) --@Sayge\'s Dark Fortune of Stamina,n/a--
pUnit:FullCastSpellOnTarget(23737,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14822', 608, 1)
end

function spell7_14822(pUnit, Event) --@Sayge\'s Dark Fortune of Strength,n/a--
pUnit:FullCastSpellOnTarget(23735,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14822', 596, 1)
end

function Sorts_14822(pUnit, Event)
local choix_sorts_14822 = math.random(0, 7)
if choix_sorts_14822 == 0 then
pUnit:RegisterEvent('spell0_14822', 1, 1)
end
if choix_sorts_14822 == 1 then
pUnit:RegisterEvent('spell1_14822', 1, 1)
end
if choix_sorts_14822 == 2 then
pUnit:RegisterEvent('spell2_14822', 1, 1)
end
if choix_sorts_14822 == 3 then
pUnit:RegisterEvent('spell3_14822', 1, 1)
end
if choix_sorts_14822 == 4 then
pUnit:RegisterEvent('spell4_14822', 1, 1)
end
if choix_sorts_14822 == 5 then
pUnit:RegisterEvent('spell5_14822', 1, 1)
end
if choix_sorts_14822 == 6 then
pUnit:RegisterEvent('spell6_14822', 1, 1)
end
if choix_sorts_14822 == 7 then
pUnit:RegisterEvent('spell7_14822', 1, 1)
end
end

function mob14822_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14822', math.random(1500, 3000), 1)
end

function mob14822_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14822_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14822_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14822, 1, 'mob14822_Action')
RegisterUnitEvent(14822, 2, 'mob14822_Leave')
RegisterUnitEvent(14822, 3, 'mob14822_Kill')
RegisterUnitEvent(14822, 4, 'mob14822_Die')
